package com.rayson.oneapi.model.req.user;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;


@Data
public class UserLoginRequest implements Serializable {

    private static final long serialVersionUID = 3191241716373120793L;

    @NotBlank(message = "用户名不能为空")
    @Length(message = "用户名不能少于4位", min = 4)
    private String username;

    @NotBlank(message = "密码不能为空")
    @Length(message = "密码不能少于8位", min = 8)
    private String password;
}
